package org.dromara.wmscloud.domain.bo;

import org.dromara.wmscloud.domain.BaseSupplier;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 供应商业务对象 base_supplier
 *
 * @author hou
 * @date 2025-04-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseSupplier.class, reverseConvertGenerate = false)
public class BaseSupplierBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long supplierId;

    /**
     * 供应商编码
     */
    @NotBlank(message = "供应商编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierCode;

    /**
     * 供应商名称
     */
    @NotBlank(message = "供应商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String supplierName;

    /**
     * 供货名称
     */
    private String supplyType;

    /**
     * 地址
     */
    private String address;

    /**
     * 联系方式
     */
    @NotBlank(message = "联系方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contact;

    /**
     * 税号
     */
    private String taxNumber;

    /**
     * 开户行
     */
    private String depositBank;

    /**
     * 账号
     */
    private String bankAccount;

    /**
     * 是否合格供应商
     */
    @NotBlank(message = "是否合格供应商不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isQualified;

    /**
     * 城市
     */
    private String city;

    /**
     * 邮政编码
     */
    private String postalCode;


}
